// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.ExpertDao;
import com.liuxinlong.modules.entity.Expert;
import com.liuxinlong.modules.mapper.ExpertMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年12月8日
 */
@Service
public class ExpertDaoImpl extends ServiceImpl<ExpertMapper, Expert> implements ExpertDao {

    @Override
    public List<Expert> pageExpertInfo(Map<String, Object> queryParam) {
        return baseMapper.pageExpertList(queryParam);
    }

    @Override
    public int getExpertInfoCount(Map<String, Object> queryParam) {
        return baseMapper.getExpertCount(queryParam);
    }

    @Override
    public List<Expert> queryExpertList(int group) {
        return baseMapper.queryExpertList(group);
    }

    @Override
    public Map<String, Map<String, String>> getExpertMap() {
        return baseMapper.getExpertMap();
    }

    @Override
    public List<Expert> queryContributionList(int topNum) {
        return baseMapper.queryContributionList(topNum);
    }

    @Override
    public void updateSolveCount(List<String> expertList) {
        baseMapper.updateSolveCount(expertList);
    }

    @Override
    public void reduceSolveCount(List<String> expertList) {
        baseMapper.reduceSolveCount(expertList);
    }

    @Override
    public void updateRiskCount(List<String> expertList) {
        baseMapper.updateRiskCount(expertList);
    }

    @Override
    public void reduceRiskCount(List<String> expertList) {
        baseMapper.reduceRiskCount(expertList);
    }

    @Override
    public void updateProjectCount(List<String> expertList) {
        baseMapper.updateProjectCount(expertList);
    }

    @Override
    public void reduceProjectCount(List<String> expertList) {
        baseMapper.reduceProjectCount(expertList);
    }
}
